package mn.slide.laborberlin.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "ZEINTRAG")
public class Eintrag {
	@DatabaseField(canBeNull = true, generatedId = true, columnName = "Z_PK")
	private int id;
	@DatabaseField(canBeNull = true, columnName = "Z_ENT")
	private int ent;
	@DatabaseField(canBeNull = true, columnName = "Z_OPT")
	private int opt;
	@DatabaseField(columnName = "ZEINTRAGID")
	private int eintragId;
	@DatabaseField(foreign = true, foreignAutoRefresh = true, columnName = "ZKAPITEL")
	private Kapitel kapitel;
	@DatabaseField(foreign = true, foreignAutoRefresh = true, columnName = "ZUEBERITEM")
	private UeberSchrift ueberItem;
	@DatabaseField(foreign = true, foreignAutoRefresh = true, columnName = "ZUNTERITEM")
	private UnterSuchung unterItem;

	public int getId() {
		return this.id;
	}

	public int getEnt() {
		return this.ent;
	}

	public int getOpt() {
		return this.opt;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setEnt(int ent) {
		this.ent = ent;
	}

	public void setOpt(int opt) {
		this.opt = opt;
	}

	public int getEintragId() {
		return this.eintragId;
	}

	public Kapitel getKapitel() {
		return this.kapitel;
	}

	public UeberSchrift getUeberItem() {
		return this.ueberItem;
	}

	public UnterSuchung getUnterItem() {
		return this.unterItem;
	}

	public void setEintragId(int eintragId) {
		this.eintragId = eintragId;
	}

	public void setKapitel(Kapitel kapitel) {
		this.kapitel = kapitel;
	}

	public void setUeberItem(UeberSchrift ueberItem) {
		this.ueberItem = ueberItem;
	}

	public void setUnterItem(UnterSuchung unterItem) {
		this.unterItem = unterItem;
	}

}
